<template>
  <div
    class="van-coupon van-cell prj"
    role="button"
    tabindex="0"
    style="width: auto"
  >
    <div
      class="
        van-cell__value van-cell__value--alone
        van-contact-card__value
        definContent
      "
    >
      <div class="car_title">{{ project.projectName }}11</div>
      <p class="ell_1">
        {{ project.guidanceNote }}
      </p>
      <div>
        <van-button
          size="mini"
          style="
            float: right;
            color: #fff;
            background: #3aa7d9;
            border: 0;
            font-size: 12px;
          "
        >
          去测评
        </van-button>
      </div>
    </div>
    <div class="van-image" style="width: 130px">
      <img
        :src="project.classesName"
        class="van-image__img"
        style="object-fit: cover"
      />
    </div>
  </div>
</template>

<script lang="ts" setup>
interface Props {
  project: {
    projectName: string
    guidanceNote: string
    classesName: string
    [key: string]: any
  }
}

const props = defineProps<Props>()
</script>

<style lang="less" scoped>
.prj img {
  border-radius: 5px;
}

.car_title {
  font-size: 13px;
  font-weight: bold;
}

.ell_1 {
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  word-break: break-all;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 12px;
  text-align: left;
}

.definContent {
  position: relative;
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
  min-height: 115px;
  padding-right: 8px;
}
</style>
